<template>
  <div id="sign">
    <transition name="el-zoom-in-bottom">
      <div v-show="isShow" id="signContainer">
        <h1>
          SYSTEM UNLOCKED
        </h1>
        <h5>
          Anti-L Shielding System Control:Online
        </h5>
        <span>
      CODE:666 Anti-L Shielding System Control:Online
    </span>
      </div>
    </transition>
  </div>
</template>

<script>
export default {
  name: "sign",
  data() {
    return {
      isShow: false
    }
  },
  mounted() {
    this.init()
    },
  methods:{
    init(){
     const that = this;
      setInterval(that.isShow = !that.isShow ,9000)
    },
    start() {
      const that = this;
      that.isShow = !that.isShow
    }
  }
}
</script>

<style scoped lang="scss">
#signContainer {
  background-color: red;
  color: #fff;
  padding: 30px;

  h1 {
    font-size: 60px;
    animation: myAnimation 0.3s infinite
  }

  h5 {
    font-size: 32px;
    animation: myAnimation 0.3s infinite
  }

  span {
    width: 100%;
    display: block;
    text-align: right;
    font-size: 12px;
    animation: myAnimation 0.3s infinite
  }
}

@keyframes myAnimation {
  0% {
    opacity: 0.2
  }
  100% {
    opacity: 1
  }
}
</style>
